package com.hf.staticinnerclass;

class Student {
    /**
     * 属性
     */
    private int sNum;
    private String sName;
    private int sAge;

    /**
     * 成员内部类
     */
    static class StuFamil{
        /**
         * 属性
         */
        private String fName;

        public StuFamil() {
        }

        public StuFamil(String fName) {
            this.fName = fName;
        }

        public String getfName() {
            return fName;
        }

        public void setfName(String fName) {
            this.fName = fName;
        }
    }
    /**
     * 行为
     */
    public void doStuding(){
        /**
         * 局部内部类
         */
        class StuClass{
            private String sClass;

            public StuClass(String sClass) {
                this.sClass = sClass;
            }

            public StuClass() {
            }

            public String getsClass() {
                return sClass;
            }

            public void setsClass(String sClass) {
                this.sClass = sClass;
            }
        }
        //局部调用
        StuClass stuClass = new StuClass();
        stuClass.getsClass();
    }

    public Student() {
    }
}
